package com.zhangruile.service;

import com.zhangruile.dao.TrainDao;
import com.zhangruile.model.TrainModel;

import java.sql.SQLException;
import java.util.Map;

/**
 * ClassName: TrainServiceImp
 *
 * @author :张蕊乐
 *         version :
 * @since JDK 1.8
 * date: 2017 11 09 21:04
 */
public class TrainServiceImp implements TrainService {
    TrainDao trainDao=new TrainDao();
    @Override
    public Map<String,Object> getPrice(String trainNum, String startStation, String endStation) {
        try {
            Map<String,Object> map=trainDao.getPrice(trainNum,startStation,endStation);
            return map;

        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
